package net.lanelife.casino.caipiao.dto.admin;

import javax.validation.constraints.NotNull;

import net.lanelife.casino.common.dto.TransientDTO;
import net.lanelife.casino.common.entity.enumeration.DataType;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class ActivityConfigCreateDTO extends TransientDTO<Integer> {

	private static final long serialVersionUID = 7333520365569673936L;

	@NotBlank
	@Length(min = 2, max = 200)
	private String code;
	
	@NotBlank
	@Length(min = 2, max = 20)
	private String name;
	
	@NotBlank
	@Length(min = 1, max = 200)
	private String value;

	@NotNull
	private DataType dataType = DataType.NUMERIC;
	
	@NotNull
	private Integer activityId;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public DataType getDataType() {
		return dataType;
	}

	public void setDataType(DataType dataType) {
		this.dataType = dataType;
	}

	public Integer getActivityId() {
		return activityId;
	}

	public void setActivityId(Integer activityId) {
		this.activityId = activityId;
	}
	
}
